package com.ddh.codeduck.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codeduck.pojo.dto.CodeDuckQuestionCategoryDTO;
import com.codeduck.pojo.entity.CodeDuckQuestionCategory;
import com.codeduck.pojo.req.CodeDuckQuestionCategoryPageReq;
import com.codeduck.pojo.vo.CodeDuckQuestionCategoryVO;

/**
 * <p>
 * 题目分类表 服务类
 * </p>
 *
 * @author ddh
 * @since 2025-07-03
 */
public interface ICodeDuckQuestionCategoryService extends IService<CodeDuckQuestionCategory> {
    /**
     * 获取题目分类列表
     * @return
     */
    IPage<CodeDuckQuestionCategoryVO> listQuestionCategory(CodeDuckQuestionCategoryPageReq codeDuckQuestionCategoryPageReq);

    /**
     * 新增或者修改题目分类
     * @param codeDuckQuestionCategoryDTO
     * @return
     */
    boolean mySaveOrUpdate(CodeDuckQuestionCategoryDTO codeDuckQuestionCategoryDTO);
}
